namespace Budgetsch.WP7.View.UserControl
{
    using System.Windows;
    using System.Windows.Controls;

    public partial class LoadingControl : UserControl
	{
        /// <summary>
        /// The <see cref="IsVisible" /> dependency property's name.
        /// </summary>
        public const string IsVisiblePropertyName = "IsVisible";

        /// <summary>
        /// Gets or sets the value of the <see cref="IsVisible" />
        /// property. This is a dependency property.
        /// </summary>
        public bool IsVisible
        {
            get
            {
                return (bool)GetValue(IsVisibleProperty);
            }
            set
            {
                SetValue(IsVisibleProperty, value);
            }
        }

        /// <summary>
        /// Identifies the <see cref="IsVisible" /> dependency property.
        /// </summary>
        public static readonly DependencyProperty IsVisibleProperty = DependencyProperty.Register(
            IsVisiblePropertyName,
            typeof(bool),
            typeof(LoadingControl),
            new PropertyMetadata(false));

		public LoadingControl()
		{
			// Required to initialize variables
			InitializeComponent();
		}
	}
}